#include "algorithm.h"

int filter_lp(filter_int_t *filter_int,int input)
{
	filter_int->y = filter_int->a * input + (2048 - filter_int->a) * filter_int->ly;
	filter_int->ly = filter_int->y;
	return filter_int->y;
}
